package com.dkd.day20250616;

public class SolutionjumpFloor {
    public static void main(String[] args) {

    }
    public int jumpFloor (int number) {
        // write code here
        if (number == 1) {
            return 1;
        }
        if (number == 2) {
            return 2;
        }
        return jumpFloor(number - 1) + jumpFloor(number - 2);
    }
}
